package ru.stepuk.modern;

/**
 *
 * @author ivan
 */
public class Path {
    private static int count = 0;
    private int id;
    private int weight = 1;

    public Path() {
        id = ++count;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }



    @Override
    public String toString() {
        return String.valueOf(weight);
    }

}
